package com.yc.sole.framework.minio;

import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yizuomin
 * @date 2024/1/3 09:36
 **/
@Configuration
@RequiredArgsConstructor
public class MinioConfig {

    private final MinIOProperties properties;

    @Bean
    public MinioService minioService() {
        return new MinioService(properties);
    }
}
